<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="pagination" uri="/WEB-INF/pagination.tld"%>
<%@ taglib prefix="mix" uri="/WEB-INF/mix-tags.tld"%>
<%@ taglib prefix="mfn" uri="/WEB-INF/mix-function.tld"%>

<%@page import="com.cooper.util.*" %>
<%@page import="java.util.*" %>
<%
Properties props = System.getProperties();
String runMode = props.getProperty("runMode", "develop");

String basePath = request.getScheme()+"://"+request.getServerName();
if("production".equals(runMode)){
	basePath += request.getContextPath()+"/";
} else {
	basePath += ":"+request.getServerPort()+request.getContextPath()+"/";
}
%>
